package com.connect.server;

import java.util.Date;

import org.apache.log4j.Logger;
import org.xsocket.connection.Server;

import com.connect.server.handler.SecuityFileHandler;

public class SecurityFileServer {
	public static void main(String[] args) {
		try {
			SecuityFileHandler handler = new SecuityFileHandler();
			Server srv = new Server(843, handler);
			srv.start();
			Logger.getRootLogger().info(new Date() + "安全策略文件服务器开启成功！");
		} catch (Exception e) {
			Logger.getRootLogger().error(new Date() + "安全策略文件服务器开启失败！" + e.getMessage());
		}

	}
}
